|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.virtualweaver.xotics.datamodel.XoObjectSupport
This is a default XoObject implementation developpers can use, by derivation,
to increase productivity when an XoObject implementation has no requirement
to derive from any specific Java object.
| Field Summary | |
protected java.beans.PropertyChangeSupport |
propertyChangeSupport
property change event support object, usable by derived object from this |
protected java.beans.VetoableChangeSupport |
vetoableChangeSupport
vetoable change event support object, usable by derived object from this |
| Constructor Summary | |
XoObjectSupport()
Empty param constructor, as required in JavaBeans specs. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener of PropertyChangeEvent fired by this.
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
Adds a VetoableChangeListener to the listener list. |
void |
checkXoValidity()
This method does nothing. |
java.lang.Object |
clone()
Returns a copy of this object only (not a deep copy). |
protected java.lang.Object |
clone(XoObjectSupport src)
Effective copy method of this object. |
boolean |
equalsXoObject(XoObject xo)
Checks whether or not this could be equal to xo. |
java.util.Locale |
getLocale()
Returns the currently selected locale, previously and directly set according to XML attribute xml:lang. |
java.lang.String |
getXmlLocalName()
Returns the XML local name of the element represented by this. |
java.lang.String |
getXmlNameSpace()
Returns the XML NameSpace of the element represented by this. |
byte |
getXmlWhiteSpace()
Returns the currently selected space management directive, previously and directly set according to XML attribute xml:space. |
XoDMInstance |
getXoDMInstance()
Returns the XO Data-Model instance owning this XO Object. |
XoContainer |
getXoParent()
Returns the XO Container parent of this. |
boolean |
isXoPropertyToWrite(java.lang.String pname)
Returns false, as there is no published property for this. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener of PropertyChangeEvent previously registered
by corresponding add method. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
Removes a VetoableChangeListener from the listener list. |
void |
setIntegrated(boolean integrated)
Does nothing. |
void |
setLocale(java.util.Locale locale)
This property is directly set according to XML attribute xml:lang. |
void |
setXmlLocalName(java.lang.String xmlLocalName)
Sets the XML local name used with this.
|
void |
setXmlNameSpace(java.lang.String xmlNameSpace)
Sets the XML local name used with this.
|
void |
setXmlWhiteSpace(byte wsd)
This property is directly set according to XML attribute xml:space. |
void |
setXoDMInstance(XoDMInstance xoDMInstance)
Sets the XO Data-Model instance owning this XO Object. |
void |
setXoParent(XoContainer parent)
Sets the XO Container parent of t this. |
java.lang.String |
toString()
Returns a default string version of this. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.beans.PropertyChangeSupport propertyChangeSupport
protected java.beans.VetoableChangeSupport vetoableChangeSupport
| Constructor Detail |
public XoObjectSupport()
| Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
XoObjectPropertyChangeEvent fired by this.
PropertyChange events are fired (if necessary) when properties are changed.
addPropertyChangeListener in interface XoObjectlistener - a PropertyChangeEvent listenerXoObject.addPropertyChangeListener(java.beans.PropertyChangeListener)public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
XoObjectPropertyChangeEvent previously registered
by corresponding add method.
removePropertyChangeListener in interface XoObjectlistener - a PropertyChangeEvent listener registeredXoObject.removePropertyChangeListener(java.beans.PropertyChangeListener)public void addVetoableChangeListener(java.beans.VetoableChangeListener l)
XoObjectVetoableChangeListener to the listener list.
addVetoableChangeListener in interface XoObjectl - The listener to add.XoObject.addVetoableChangeListener(java.beans.VetoableChangeListener)public void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
XoObjectVetoableChangeListener from the listener list.
removeVetoableChangeListener in interface XoObjectl - The listener to remove.XoObject.removeVetoableChangeListener(java.beans.VetoableChangeListener)public boolean equalsXoObject(XoObject xo)
this could be equal to xo. This method
compares name space and local name and returns true if both are equal.
equalsXoObject in interface XoObjectxo - an XO object to compare to this
public void checkXoValidity()
throws XoValidityException
checkXoValidity in interface XoObjectXoValidityExceptionXoObject.checkXoValidity()public java.util.Locale getLocale()
XoObjectxml:lang. If no value specified, can return null.
getLocale in interface XoObjectXoObject.getLocale()
public void setLocale(java.util.Locale locale)
throws java.beans.PropertyVetoException
XoObjectxml:lang.
setLocale in interface XoObjectlocale - a Locale object holding xml:lang value.
java.beans.PropertyVetoException - if this is in a DM instance in read-only modeXoObject.setLocale(java.util.Locale)public byte getXmlWhiteSpace()
XoObjectxml:space. By default, must return XoConstants.WS_COLLAPSE
which corresponds to xml:space=DEFAULT.
getXmlWhiteSpace in interface XoObjectXoConstants.WS_PRESERVE or XoConstants.WS_COLLAPSE (default).XoObject.getXmlWhiteSpace()
public void setXmlWhiteSpace(byte wsd)
throws java.beans.PropertyVetoException
XoObjectxml:space.
setXmlWhiteSpace in interface XoObjectwsd - either XoConstants.WS_PRESERVE or XoConstants.WS_COLLAPSE (xml:space=DEFAULT).
java.beans.PropertyVetoException - if this is in a DM instance in read-only modeXoObject.setXmlWhiteSpace(byte)public boolean isXoPropertyToWrite(java.lang.String pname)
this.
isXoPropertyToWrite in interface XoObjectpname - the name of a property of this
XoObject.isXoPropertyToWrite(java.lang.String)public XoDMInstance getXoDMInstance()
XoObject
getXoDMInstance in interface XoObjectXoObject.getXoDMInstance()public void setXoDMInstance(XoDMInstance xoDMInstance)
XoObject
setXoDMInstance in interface XoObjectxoDMInstance - the Data-Model instance owner, or null if this object is not in
an XO Data-Model instance.XoObject.setXoDMInstance(com.virtualweaver.xotics.datamodel.XoDMInstance)public java.lang.String getXmlNameSpace()
XoObjectthis.
getXmlNameSpace in interface XoObjectXoObject.getXmlNameSpace()public void setXmlNameSpace(java.lang.String xmlNameSpace)
XoObjectthis.
This method is useful only when this can serve as implementation of several elements, in multiple name spaces.
setXmlNameSpace in interface XoObjectxmlNameSpace - the XML name space.XoObject.setXmlNameSpace(java.lang.String)public java.lang.String getXmlLocalName()
XoObjectthis.
getXmlLocalName in interface XoObjectXoObject.getXmlLocalName()public void setXmlLocalName(java.lang.String xmlLocalName)
XoObjectthis.
This method is useful only when this can serve as implementation of several elements.
setXmlLocalName in interface XoObjectxmlLocalName - the XML local nameXoObject.setXmlLocalName(java.lang.String)public XoContainer getXoParent()
XoObjectthis. Only the root object has no parent.
getXoParent in interface XoObjectthis, or null if this object
is not in a DM instanceXoObject.getXoParent()public void setXoParent(XoContainer parent)
XoObjectthis. Only the root object has no parent.
setXoParent in interface XoObjectparent - XO Container parent of this, or null if this object
is not in a DM instance.XoObject.setXoParent(com.virtualweaver.xotics.datamodel.XoContainer)public java.lang.Object clone()
clone in interface XoObjectprotected java.lang.Object clone(XoObjectSupport src)
public java.lang.String toString()
this.
public void setIntegrated(boolean integrated)
setIntegrated in interface XoObjectintegrated - true if integrated, false if completely removedXoObject.setIntegrated(boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||